package com.framework.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.framework.dao.LogisticsDao;
import com.framework.entity.tran.TranLogistics;
import com.framework.service.LogisticsService;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("logisticsService")
public class LogisticsServiceImpl extends ServiceImpl<LogisticsDao, TranLogistics> implements LogisticsService {

	@Override
	public TranLogistics queryLogisticsById(Long logisticsId) {
		TranLogistics logistics = new TranLogistics();
		logistics.setLogisticId(logisticsId);
		return baseMapper.selectOne(logistics);
	}

	@Override
	public List<TranLogistics> queryLogisticList() {
		return this.baseMapper.selectList(null);
	}
}
